// Copyright (c) 2011 Blue Onion Software, All rights reserved
namespace BlueOnionSoftware.Bloget
{
    internal class DraftsView : IndexView
    {
        internal DraftsView(Bloget blogetArg)
            : base(blogetArg)
        {
        }

        protected override string RootClassId()
        {
            return "drafts-view";
        }

        protected override void ShowView()
        {
            if (Bloget.IsAuthor || Bloget.IsAdministrator)
            {
                var passwordForm = new PasswordView(Bloget);
                passwordForm.Show();
                return;
            }

            MainMenu.ShowMenu(Bloget);
            Index(true, null);
        }
    }
}